package photogcalc.common;

/**
 *
 * @author aokkonen
 */
public class FocalLengthSlider extends FstopSlider {
    protected double flenghts[] =
        { 4.5, 7, 8, 9, 10, 
          11, 12, 14, 15, 16,
          17, 17.5, 18, 20, 21,
          24, 25, 28, 30, 31,
          35, 38, 40, 42, 43,
          45, 50, 55, 70, 75,
          77, 80, 85, 90, 100,
          105, 135, 150, 180, 200,
          210, 250, 300, 350, 400,
          420, 500, 600, 800, 1000,
          1200 };

    protected FocalLengthSlider(String label, double min, double max) {
        super(label, min, max);
        super.stops = flenghts;
    }

    public FocalLengthSlider(String label) {
        this(label, 0, 50);
    }

    protected String getValueStr() {
        return this.getValue()+"mm";
    }
}
